package com.owner.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.owner.biz.RepairsBiz;
import com.owner.entity.Repairs;
import com.owner.entity.User;

@Controller
public class RepairsController {
	@Autowired
	private RepairsBiz repairsBiz;
	
//	@RequestMapping("")
//	public String showComplaint(Model model){//显示全部投诉列表
//		List<Repairs> list = repairsBiz.getAllRepairsByType(1);
//		model.addAttribute("ComplaintList",list);
//		return "complain";
//	}
//	@RequestMapping("")
//	public String showRepairs(Model model){//显示全部报修列表
//		List<Repairs> list = repairsBiz.getAllRepairsByType(0);
//		model.addAttribute("RepairsList",list);
//		return "";
//	}
//	@RequestMapping("")
//	public String showComplaintById(Model model,Integer id){//点击某条投诉根据id进行显示并且回复
//		Repairs repairsById=repairsBiz.getRepairsById(id);
//		model.addAttribute("repairs",repairsById);
//		return "";
//	}
}
